﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FreesenseSubAIS
{
   public  class InspImageInfo
    {
   
        private int index;
        private Bitmap[] imgSouce;
        private bool _step;
        public InspImageInfo(Bitmap[] souce, int ind, bool auto)
        {
            this.imgSouce = souce;
            this.index = ind;
            this._step = auto;
        }
        public bool Step { get { return _step; } set { value = _step; } }
        public int Index { get { return index; } set { value = index; } }
        public Bitmap[] ImgSouce { get { return imgSouce; } set { value = imgSouce; } }
        public void Disopse()
        {
            if (imgSouce != null)
            {
                for (int i = 0; i < imgSouce.Count(); i++)
                {
                    this.imgSouce[i].Dispose();
                    this.imgSouce[i] = null;
                }
            }

        }
    }
}
